package vip.fuxk.neav;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.annotation.Param;
import org.noear.solon.core.handle.ModelAndView;
import org.noear.solon.core.handle.Result;
import org.noear.solon.data.cache.CacheService;
import vip.fuxk.neav.dto.SubAppRegisterDTO;
import vip.fuxk.neav.service.SubAppService;

@Controller
@Mapping("/_discover_/")
public class DemoController {

    @Inject
    SubAppService subAppService;


    @Mapping("/register")
    public Result<Boolean> register(@Param(value = "group",required = true) String group ,
                                    @Param(value = "server",required = true)String server){
        return Result.succeed(subAppService.register(group,server));
    }


}